package site.wanjiahao.app;

import site.wanjiahao.factory.ProxyFactory;
import site.wanjiahao.service.UserService;

public class Client {

    public static void main(String[] args) {

        ProxyFactory proxyFactory = new ProxyFactory();

        UserService proxy = proxyFactory.getProxy(UserService.class);

        String rpc = proxy.helloRpc("万佳豪");

        System.out.println("接受到远程数据" + rpc);

    }
}
